(ns dbmigration.db-init
  (:require [clojure.contrib.sql :as sql]
            [lobos.connectivity :as lcnn] 
            [lobos.core :as lcore]
            [lobos.schema :as lschema])
  (:use clojure.java.io))

(def host "localhost")
(def port "3306")
(def db-name "salesys")

(def db {:classname "com.mysql.jdbc.Driver"
         :subprotocol "mysql"
         :subname (str "//" host ":" port "/" db-name)
         :user "zdc"
         :password "zdc"
         })

(defn exec []
  (sql/with-connection db
    (println "h")))